﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PurchaseOrderDetail.aspx.cs" Inherits="WMS6.Web.OrderManagement.PurchaseOrderDetail" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>PurchaseOrderDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>  
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
      <script src="../Js/Verification.js" type="text/javascript"></script>
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initDetailPage();
        }
        
        //弹出窗口选择货品
        function selectSku()
        {
            var rtnValue = popModalWindow('../Configuration/SkuQuery.aspx?action=txtSkuID&ownerID='+ escape(document.getElementById("txtOwnerID").value),'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSkuID").focus();
                document.getElementById("txtSkuID").value = rtnValue;
                 document.getElementById("hdnPageType").value = "1"
                 __doPostBack('<%=ASkuID.ClientID.Replace('_','$')%>',''); 
            }
        }
        //延迟提交0.5秒 解决智能提示无法单击选择结果的问题        
        function txtSkuIDTextChanged()
        {
          document.getElementById("hdnPageType").value = "1";  
          setTimeout( " __doPostBack('<%=ASkuID.ClientID.Replace('_','$')%>','')",500);
        }
       
       function selectAltSkuID()
        {
            var vendorID = document.getElementById("hdnVendorID").value;
            var rtnValue = popModalWindow('../Configuration/AlternateSkuQuery.aspx?action=txtAltSkuID&ownerID='+ escape(document.getElementById("txtOwnerID").value)+"&VendorID="+escape(vendorID),'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            //window.alert("rtnValue:"+rtnValue+"----first index:"+rtnValue.indexOf(',')+"-----lastIndexOf:"+rtnValue.lastIndexOf(','));
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtAltSkuID").focus();
                document.getElementById("txtSkuID").value = rtnValue.substring(0,rtnValue.indexOf(','));
                document.getElementById("txtAltSkuID").value = rtnValue.substring(rtnValue.indexOf(',')+1,rtnValue.lastIndexOf(','));
                 document.getElementById("hdnPageType").value = "1"
                 __doPostBack("txtSkuID_TextChanged","");
            }
        }
        
        //弹出窗口选择承运商
        function selectPack()
        {
            var rtnValue = popModalWindow('../Configuration/PackQuery.aspx?action=txtPackID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtPackID").focus();
                document.getElementById("txtPackID").value = rtnValue;
                 document.getElementById("hdnPageType").value = "1"
                __doPostBack("txtPackID_TextChanged","");
            }
        }
         // 根据 预期量计算 体积 毛重 净重
        function ComputeExpectedQty(obj)
        { 
            var farmartLength = document.getElementById("hdnFormart").value;
            
            if(obj.value != "" && obj.value >0)
            {
              document.getElementById("<%=txtTotalGrossWeight.ClientID %>").value =document.getElementById("<%=hdnTotalGrossWeight.ClientID %>").value *obj.value;
              document.getElementById("<%=txtTotalNetWeight.ClientID %>").value =document.getElementById("<%=hdnTotalNetWeight.ClientID %>").value *obj.value;
              document.getElementById("<%=txtTotalCube.ClientID %>").value =document.getElementById("<%=hdnTotalCube.ClientID %>").value *obj.value;

              if (document.getElementById("<%=txtUnitPrice.ClientID %>").value != "" && document.getElementById("<%=txtUnitPrice.ClientID %>").value >= 0) {

                  document.getElementById("<%=txtTotalPrice.ClientID %>").value = document.getElementById("<%=txtUnitPrice.ClientID %>").value * obj.value;
              }
              else 
              {
                  document.getElementById("<%=txtTotalPrice.ClientID %>").value = "0";
                  document.getElementById("<%=txtUnitPrice.ClientID %>").value = "0";
              }
              
              //oldValue.toFixed(obj2.value)
              document.getElementById("<%=txtTotalGrossWeight.ClientID %>").value = eval(document.getElementById("<%=txtTotalGrossWeight.ClientID %>").value).toFixed(farmartLength);
              document.getElementById("<%=txtTotalNetWeight.ClientID %>").value = eval(document.getElementById("<%=txtTotalNetWeight.ClientID %>").value).toFixed(farmartLength);
              document.getElementById("<%=txtTotalCube.ClientID %>").value = eval(document.getElementById("<%=txtTotalCube.ClientID %>").value).toFixed(farmartLength);
              document.getElementById("<%=txtTotalPrice.ClientID %>").value = eval(document.getElementById("<%=txtTotalPrice.ClientID %>").value).toFixed(farmartLength);
            }
            else
            {
              document.getElementById("<%=txtTotalGrossWeight.ClientID %>").value ="0";
              document.getElementById("<%=txtTotalNetWeight.ClientID %>").value ="0";
              document.getElementById("<%=txtTotalPrice.ClientID %>").value ="0";
              document.getElementById("<%=txtTotalCube.ClientID %>").value ="0";
            }
        }
          //关闭
        function PoUnitPriceClose()
        { 
          $('#tbPoUnitPrice').fadeOut("slow",function(){ $.modal.close();});       
        } 
        function UpdatePoUnitPrice()
		 {	
		   $('#tbPoUnitPrice').modal();
		 
		 }
        
          function GetValue(obj)
        {          
          document.getElementById('UpdateUnitPrice').value=obj.value;
        }

    </script>
</head>
<body  onunload="SavePageValue('btnSave','hdnPageQty');">
    <form id="F3013" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        
            <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblAllocateRuleDetail" runat="server" CssClass="label_header" 
                            Text="采购订单明细" meta:resourcekey="lblAllocateRuleDetail"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCancel%>" AccessKey="c"
                            OnClick="btnCancel_Click"   Enabled="false"/>
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" AccessKey="s"
                            OnClick="btnSave_Click" OnClientClick="SethdnPageQty('hdnPageQty');"   Enabled="false"/>
                    </td>
                    <td>
                        <asp:Button ID="btnSaveContinue" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSaveContinue%>" AccessKey="s"
                            OnClick="btnSaveContinue_Click" 
                            OnClientClick="SethdnPageQty('hdnPageQty');"  Enabled="false" />
                    </td>
                    <td>
                        <asp:Button ID="btnPriceChanges" runat="server" CssClass="button" Text="修改单价" AccessKey="s" OnClientClick="UpdatePoUnitPrice(); return false;"  Enabled="false" />


                  </td>
                </tr>
            </table>
        </div>
          <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
         <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" ></asp:Label>
        </div>
        
        
        <div id="div_menu">
        <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,3)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">基本信息</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,3);" id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" >&nbsp;货品&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,3);" id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">&nbsp;自定义字段&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR3"></div>
            </div>
            
        </div>
        
         <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblpoID" runat="server" CssClass="label" Text="采购订单号" 
                                meta:resourcekey="lblpoID"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lbllineID" runat="server" CssClass="label" Text="采购订单行号" 
                                meta:resourcekey="lbllineID"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:TextBox ID="txtpoID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtpoID"></asp:TextBox>
                        </td>
                        <td width="180">
                            <asp:TextBox ID="txtlineID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtlineID"></asp:TextBox>
                        </td>
                        <td width="180">
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                Enabled="False" meta:resourcekey="ddlStatus"></asp:DropDownList>
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主代码" 
                                meta:resourcekey="lblOwnerID"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblSkuID" runat="server" CssClass="label" Text="货品代码" 
                                meta:resourcekey="lblSkuID"></asp:Label><font class="must_input">*</font>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblAltSkuID" runat="server" CssClass="label" Text="别名"></asp:Label>
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtOwnerID"></asp:TextBox>
                        </td>
                        <td width="180">
                            <asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox"  onkeyUp="SearchDataAjax(this,'SKU','txtOwnerID');return false;" 
                                onchange="txtSkuIDTextChanged();"
                                meta:resourcekey="txtSkuID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSku();"/>
                                <a onserverclick="txtSkuID_TextChanged" runat="server" style="display: none;" id="ASkuID" ></a>
                        </td>
                        <td width="180" >
                            <asp:TextBox ID="txtAltSkuID" runat="server" CssClass="textbox" ></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectAltSkuID();"/>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180" colspan="2">
                           <asp:Label ID="lblSkuDesc" runat="server" CssClass="label" Text="货品描述" 
                                meta:resourcekey="lblSkuDesc"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblPakcID" runat="server" CssClass="label" Text="包装代码" 
                                meta:resourcekey="lblPakcID"></asp:Label><font class="must_input">*</font>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblUomID" runat="server" CssClass="label" Text="计量单位" 
                                meta:resourcekey="lblUomID"></asp:Label><font class="must_input">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td width="180" colspan="2">
                            <asp:TextBox ID="txtSkuDesc" runat="server" CssClass="largetextbox" 
                                meta:resourcekey="txtSkuDesc"></asp:TextBox>
                        </td>
                        <td width="180">
                            <asp:TextBox ID="txtPackID" runat="server" CssClass="textbox" 
                                ontextchanged="txtPackID_TextChanged"  AutoPostBack="True" 
                                meta:resourcekey="txtPackID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectPack();"/>
                        </td>
                        <td width="180">
                            <asp:DropDownList ID="ddlUomID" runat="server" CssClass="mediumselectbox" 
                                AutoPostBack="True" onselectedindexchanged="ddlUomID_SelectedIndexChanged" 
                                meta:resourcekey="ddlUomID"></asp:DropDownList>
                        </td>
                    </tr>
                    
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblOrderedQty" runat="server" CssClass="label" Text="订购量" 
                                meta:resourcekey="lblOrderedQty"></asp:Label><font class="must_input">*</font>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblRceivedQty" runat="server" CssClass="label" Text="接收量" 
                                meta:resourcekey="lblRceivedQty"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblRejectedQty" runat="server" CssClass="label" Text="拒绝量" 
                                meta:resourcekey="lblRejectedQty"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblUnitPrice" runat="server" CssClass="label" Text="单价" ></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:TextBox ID="txtOrderedQty" runat="server" CssClass="textbox"   
                                onblur="JavaScript:dataVer._Is123OrX(this,'lblMsg') ;ComputeExpectedQty(this);" 
                                meta:resourcekey="txtOrderedQty"></asp:TextBox>
                        </td>
                        <td width="180">
                            <asp:TextBox ID="txtRceivedQty" runat="server" CssClass="textbox" 
                                Enabled="False" meta:resourcekey="txtRceivedQty"></asp:TextBox>
                        </td>
                        <td width="180">
                            <asp:TextBox ID="txtRejectedQty" runat="server" CssClass="textbox" 
                                Enabled="False" meta:resourcekey="txtRejectedQty"></asp:TextBox>
                        </td>
                        <td width="180">
                            <asp:TextBox ID="txtUnitPrice" runat="server" CssClass="textbox"  AutoPostBack="true"  onblur="JavaScript:dataVer._Is123OrX(this,'lblMsg')" 
                                ontextchanged="txtUnitPrice_TextChanged" ></asp:TextBox>
                        </td>
                    </tr>
                    
                    <tr>
                        <td width="180">     
                            <asp:Label ID="lblTotalGrossWeight" runat="server" CssClass="label" Text="总毛重" 
                                meta:resourcekey="lblTotalGrossWeight"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblTotalNetWeight" runat="server" CssClass="label" Text="总净重" 
                                meta:resourcekey="lblTotalNetWeight"></asp:Label>
                        </td>
                        <td width="180">
                            
                                <asp:Label ID="lblTotalCube" runat="server" CssClass="label" Text="总体积" 
                                meta:resourcekey="lblTotalCube"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblTotalPrice" runat="server" CssClass="label" Text="总货值" 
                                meta:resourcekey="lblTotalPrice"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:TextBox ID="txtTotalGrossWeight" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtTotalGrossWeight"></asp:TextBox>
                        </td>
                        <td width="180">
                            <asp:TextBox ID="txtTotalNetWeight" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtTotalNetWeight"></asp:TextBox>
                        </td>
                        <td width="180">
                            
                                <asp:TextBox ID="txtTotalCube" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtTotalCube"></asp:TextBox>
                        </td>
                        <td width="180">
                            <asp:TextBox ID="txtTotalPrice" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtTotalPrice"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:CheckBox ID="chkQcAutoAdjust" runat="server" CssClass="selectbox"  Width="150px"
                                Text="需要QC" meta:resourcekey="chkQcRequired" />
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:CheckBox ID="chkQcRequired" runat="server" CssClass="selectbox" Width="150px"
                                Text="QC自动调整" meta:resourcekey="chkQcAutoAdjust" />
                        </td>
                        <td width="180">
                            &nbsp;</td>
                        <td width="180">
                            &nbsp;</td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr style="height:10px">
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                 </table>
             </div>
             
             <div id="con_one_2" style="display:none;">
                <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td><asp:Label ID="lblLength" runat="server" CssClass="label" Text="长"></asp:Label></td>
                        <td><asp:Label ID="lblCube" runat="server" CssClass="label" Text="体积"></asp:Label></td>
                        <td><asp:Label ID="lblSize" runat="server" CssClass="label" Text="尺码"></asp:Label></td>
                        <td><asp:Label ID="lblCostPrice" runat="server" CssClass="label" Text="成本价格"></asp:Label></td>
                    </tr>
                    <tr>
                        <td><asp:TextBox ID="txtLength" runat="server"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtCube" runat="server"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtSize" runat="server"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtCostPrice" runat="server"></asp:TextBox></td>
                    </tr>
                    
                    <tr>
                        <td><asp:Label ID="lblWight" runat="server" CssClass="label" Text="宽"></asp:Label></td>
                        <td><asp:Label ID="lblNetWgt" runat="server" CssClass="label" Text="净重"></asp:Label></td>
                        <td><asp:Label ID="lblColor" runat="server" CssClass="label" Text="颜色"></asp:Label></td>
                        <td><asp:Label ID="lblNetPrice" runat="server" CssClass="label" Text="净价"></asp:Label></td>
                    </tr>
                    <tr>
                        <td><asp:TextBox ID="txtWight" runat="server"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtNetWgt" runat="server"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtColor" runat="server"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtNetPrice" runat="server"></asp:TextBox></td>
                    </tr>
                    
                    <tr>
                        <td><asp:Label ID="lblHeight" runat="server" CssClass="label" Text="高"></asp:Label></td>
                        <td><asp:Label ID="lblGrossWgt" runat="server" CssClass="label" Text="毛重"></asp:Label></td>
                        <td><asp:Label ID="lblSkuStyle" runat="server" CssClass="label" Text="型号"></asp:Label></td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td><asp:TextBox ID="txtHeight" runat="server"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtCrossWgt" runat="server"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtSkuStyle" runat="server"></asp:TextBox></td>
                        <td><asp:CheckBox ID="chbIsSalePromption" runat="server" CssClass="checkbox" Text="促销品" /></td>
                    </tr>
                    
                    <tr>
                        <td>&nbsp;</td>
                        <td><asp:Label ID="lblTareWgt" runat="server" CssClass="label" Text="皮重"></asp:Label></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td><asp:TextBox ID="txtTareWgt" runat="server"></asp:TextBox></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    
                    <tr style="height:10px">
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    
                    <tr>
                        <td><asp:Label ID="lblShelfLifeCodeType" runat="server" CssClass="label" Text="保质天数"></asp:Label></td>
                        <td><asp:Label ID="lblQty" runat="server" CssClass="label" Text="可用库存"></asp:Label></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td><asp:TextBox ID="txtShelfLifeOnReceiving" runat="server"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtInvQty" runat="server"></asp:TextBox>
                            <asp:ImageButton ID="imgBtnQty" runat="server" onclick="imgBtnQty_Click" ImageUrl="~/Images/icon_Refresh.gif" /></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    
                    <tr>
                        <td><asp:Label ID="lblReorderQty" runat="server" CssClass="label" Text="最小订货量"></asp:Label></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td><asp:TextBox ID="txtReorderQty" runat="server"></asp:TextBox></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    
                    <tr>
                        <td><asp:Label ID="lblReorderPoint" runat="server" CssClass="label" Text="订货提前时间"></asp:Label></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td><asp:TextBox ID="txtReorderPoint" runat="server"></asp:TextBox></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    
                    <tr style="height:10px">
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    
                </table>
             </div>
             
             <div id="con_one_3" style="display:none;">
                    <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text="自定义01" 
                                    meta:resourcekey="lblUdf1"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text="自定义06" 
                                    meta:resourcekey="lblUdf6"></asp:Label>
                            </td>
                            <td width="360px" colspan="2">
                                <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" 
                                    meta:resourcekey="lblRemark"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf1"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf6"></asp:TextBox>
                            </td>
                            <td width="360px" colspan="2" rowspan="3">
                                <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" 
                                    meta:resourcekey="txtRemark"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text="自定义02" 
                                    meta:resourcekey="lblUdf2"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text="自定义07" 
                                    meta:resourcekey="lblUdf7"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                             <td width="180px">
                                <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" 
                                     meta:resourcekey="txtUdf2"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf7"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义03" 
                                    meta:resourcekey="lblUdf3"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义08" 
                                    meta:resourcekey="lblUdf8"></asp:Label>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf3"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf8"></asp:TextBox>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblUdf4" runat="server" CssClass="label" Text="自定义04" 
                                    meta:resourcekey="lblUdf4"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf9" runat="server" CssClass="label" Text="自定义09" 
                                    meta:resourcekey="lblUdf9"></asp:Label>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf4"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf9"></asp:TextBox>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义05" 
                                    meta:resourcekey="lblUdf5"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义10" 
                                    meta:resourcekey="lblUdf10"></asp:Label>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf5"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf10"></asp:TextBox>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr style="height:10px">
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                    </table>
             </div>
        
           </div>
                <input type="hidden" id="hdnFrom" runat="server"/>
                <input type="hidden" id="hdnUnitPrice" runat="server"/>
                <input id="hdnpoID" runat="server" type="hidden"/>
                <input id="hdnTotalGrossWeight" runat="server" type="hidden"/>
                <input id="hdnTotalNetWeight" runat="server" type="hidden"/>
                <input id="hdnTotalPrice" runat="server" type="hidden"/>
                <input id="hdnTotalCube" runat="server" type="hidden"/>
                <input id="hdnUomValue" runat="server" type="hidden"/>
                <input id="hdnPageQty" runat="server" type="hidden" value="0"/>
                <input id="hdnPageType" runat="server" type="hidden" value="0"/>
                <input id="hdnFormart" runat="server" type="hidden"  />
                <input id="hdnVendorID" runat="server" type="hidden" />
            </ContentTemplate>              
        </asp:UpdatePanel>
       
      </div>
    
      <input type="hidden" id="UpdateUnitPrice" runat="server" />
    <table id="tbPoUnitPrice" style="display:none" width="500" border="0" align="center"  cellpadding="0" cellspacing="0">
    <tr>
        <td height="34" background="../Images/slotbg_01.gif">
            <table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <span class="warehoustitle">修改单价</span>
                    </td>
					<td width="16" class="save1" >
                        <a id="A1"  runat="server" onserverclick="btnPriceChanges_Click" style="border:0px; text-decoration: none; width:100%; height:100%">&nbsp;&nbsp;&nbsp;&nbsp;</a>
                    </td>
                    <td width="16" class="close" onclick="PoUnitPriceClose();">&nbsp;
                        
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td height="35" background="../Images/slotbg_03.gif">
            <table width="90%" border="0" align="center" cellpadding="2" cellspacing="0">               
                <tr>
                    <td class="areaname">
                        修改单价：
                    </td>
                    <td class="areamessage" >
                    <input id="txtUpdateUnitPrice" type="text" class="textbox" runat="server" onblur=GetValue(this) />
                    </td>
                    <td>  </td>          
                    <td></td>                       
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td height="7" background="../Images/slotbg_02.gif">
        </td>
    </tr>
    <tr>
        <td background="../Images/slotbg_03.gif">
            <div style="overflow-y: auto; height: 20px; width: 100%; ">
                
            </div>
        </td>
    </tr>
    <tr>
        <td height="18" background="../Images/slotbg_04.gif">&nbsp;
        </td>
    </tr>
</table>
    </form>
</body>
</html>
